﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="customtech._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    
    <h1 class="listhead">
    LIST OF BUILDS</h1>
    <br />
    
    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
        AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
        CssClass="gridtable">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="details.aspx?ID={0}" DataTextField="BuildName" 
                HeaderText="Build Name" SortExpression="BuildName" />
            <asp:BoundField DataField="TotalCostToBuild" HeaderText="Build Cost" 
                SortExpression="TotalCostToBuild" />
            <asp:ImageField DataImageUrlField="BuildPicture" HeaderText="Thumbnail">
                <ControlStyle CssClass="buildPicture" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:connstr %>" 
        ProviderName="<%$ ConnectionStrings:connstr.ProviderName %>" 
        SelectCommand="SELECT [BuildName], [TotalCostToBuild], [BuildPicture], [ID] FROM [Builds]">
    </asp:SqlDataSource>
</asp:Content>
